#pragma once
#include "UGCtrl.h"
#include <string>
using namespace std;

class CMainOrderPanel;
class CSymbolInfo;
class CSymbolManager;
class CPositionInfo;
class CJangoListGrid :
	public CUGCtrl
{
public:
	CJangoListGrid();
	~CJangoListGrid();
	void QuickRedrawCell(int col, long row);
	void SetTickInfo(CSymbolManager* a_SymMgr);
	CMainOrderPanel* m_pMainWnd;

	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COrderStateGrid)
	//***** Over-ridable Notify Functions *****
	virtual void OnSetup();
	//}}AFX_VIRTUAL

	CFont m_font1;
	CFont m_font2;
	int m_MaxRow;
	int oldIndex;

	void UpdateJango(int a_Index, CPositionInfo* a_Posi);
	void UpdateJango(int a_Index, string a_SymCode, int a_Jango, double a_AvVal, int a_Type, int a_Sonic);
	void UpdateJango(int a_Index, string a_SymCode, int a_Jango, double a_AvVal, int a_Sonic);
	void ClearJango(bool a_Empty);
};

